package com.tanhua.dubbo.api;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanhua.dubbo.api.db.ProblemApi;
import com.tanhua.dubbo.api.mapper.ProblemMapper;
import com.tanhua.model.db.Problem;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

@DubboService
public class ProblemApiImpl  implements  ProblemApi  {
    @Autowired
    private ProblemMapper problemMapper;

    /**
     * 根据问题Id获取问题 zhengzheng、liuhaijie、zhangfude
     * @param questionId 问题Id
     * @return 问题
     */
    @Override
    public Problem getQuestion(String questionId) {
        return problemMapper.selectById(questionId);
    }


}
